package com.countryside.service;
import com.countryside.pojo.EmployeeWork;
import com.countryside.pojo.query.EmployeeWorkQuery;
import com.github.pagehelper.PageInfo;
import org.springframework.lang.Nullable;


import java.util.List;


public interface EmployeeWorkService {
    PageInfo<EmployeeWork> listEmployeeWork(EmployeeWorkQuery employeeWorkQuery);
    PageInfo<EmployeeWork> listEmployeeWorkBySearch(EmployeeWorkQuery employeeWorkQuery);
    int addEmployeeWork(EmployeeWork employeeWork);
    EmployeeWork getEmployeeWork(String userId);
    int updateEmployeeWork(EmployeeWork employeeWork);
    List<EmployeeWork> queryEmployeeWorkByExpectedWork(String expectedWork);
    List<EmployeeWork> queryEmployeeWorkByAddress(String address, @Nullable Integer start, @Nullable Integer limit);
    EmployeeWork queryEmployeeByEmployeeId(Integer id);
}
